<?php //registration form
if(isset($_POST['0']))
{
    $name = $_POST['0'];
} else {
    $name = '';
}
$content = new Models_User();
?>
<div class="well">
    <form class="form-horizontal" action="/<?php echo $content->path; ?>user/registering" method="POST">
      <fieldset>
        <legend>New user:</legend>
        <div class="control-group">
          <label class="control-label">Name:</label>
          <div class="controls">
            <input type="text" class="span3" name="0" value="<?php echo $name; ?>">
          </div>
        </div>
        <div class="control-group">
          <label class="control-label">Password:</label>
          <div class="controls">
            <input type="password" class="span3" name="1" value="">
          </div>
        </div>
        <div class="control-group">
          <label class="control-label">Repeat password:</label>
          <div class="controls">
            <input type="password" class="span3" name="2" value="">
          </div>
        </div>
        <div class="form-actions">
          <button class="btn btn-primary" name="submit" type="submit">Register</button>
          <button class="btn" type="reset">Clear</button>
        </div>
      </fieldset>
    </form>
</div>